package mx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import mx.dao.CompanyDao;
import mx.entity.Company;
import mx.service.CompanyService;

@Service
public class CompanyServiceImpl implements CompanyService {
	@Resource
	private CompanyDao companyDao;

	public List<Company> list(Map<String, Object> map) {

		return companyDao.list(map);
	}

	public Long getTotal(Map<String, Object> map) {

		return companyDao.getTotal(map);
	}

	public Integer update(Company company) {

		return companyDao.update(company);
	}

	public Company find(Company company) {

		return companyDao.find(company);
	}

	public Integer delete(Integer id) {

		return companyDao.delete(id);
	}

	public Integer add(Company company) {

		return companyDao.add(company);
	}

}
